/**
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.row {
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  grid-template-areas: "icon key colon value copy-button space";
}

.icon {
  grid-area: icon;
}

// Resize mat-icon and fit in a line
.line-icon {
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 18px;
}

.key {
  grid-area: key;
  font-weight: 600;
}

.colon {
  grid-area: colon;
  margin: 0px 3px;
}

.value {
  grid-area: value;
  overflow: hidden;
  user-select: none;

  .value-inner {
    margin: 0px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

.copy-button {
  grid-area: copy-button;
  appearance: none;
  border: none;
  border-radius: 4px;

  &:hover {
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }
}
